package com.fowo.api.syncLingxingApi.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fowo.api.entity.Supplier;
import com.fowo.api.syncLingxingApi.entity.TmpSyncLingxingToSupplier;
import com.fowo.api.syncLingxingApi.mapper.TmpSyncLingxingToSupplierMapper;
import com.fowo.api.syncLingxingApi.service.TmpSyncLingxingToSupplierService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@DS("ds24")
public class TmpSyncLingxingToSuplierServiceImpl
        extends ServiceImpl<TmpSyncLingxingToSupplierMapper, TmpSyncLingxingToSupplier>
        implements TmpSyncLingxingToSupplierService {
    @Override
    public Integer updateToSupplier(String version) {
        return baseMapper.updateToSupplier(version);
    }

    @Override
    public Integer insertToSupplier(String version) {
        return baseMapper.insertToSupplier(version);
    }

    @Override
    public void clearAll() {
        baseMapper.clearAll();
    }

    @Override
    public List<Supplier> getSupplierByCode(List<TmpSyncLingxingToSupplier> suppliers) {
        return baseMapper.getSupplierByCode(suppliers);
    }
}
